<?php

namespace app\service\index;

use app\db\index\D_category;

class S_category
{
    public $d_category;

    public function __construct()
    {
        $this->d_category = new D_category();
    }

    /**
     * 获取数据详情
     * @param string $paramObj
     * @return array
     */
    public function info($paramObj=""){
        return $this->d_category->info($paramObj);
    }

    /**
     * 所有数据
     * @param string $paramObj
     * @return array
     */
    public function allData($paramObj=""){
        return $this->d_category->allData($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}